<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

  <Style x:Key="HICFocusVisual">
    <Setter Property="Control.Template">
      <Setter.Value>
        <ControlTemplate>
          <Border>
            <Rectangle
              Margin="1"
              StrokeThickness="1"
              Stroke="{StaticResource FocusBorderBrush}"
              StrokeDashArray="1 2"/>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  
  <Style x:Key="VerticalHIC" TargetType="{x:Type HeaderedItemsControl}">
    <Setter Property="FocusVisualStyle" Value="{StaticResource HICFocusVisual}"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type HeaderedItemsControl}">
          <StackPanel Margin="20">
            <ContentPresenter
              Grid.Row="0"
              Margin="8,20,0,0"
              TextBlock.Foreground="#AAA"
              TextBlock.FontFamily="Trebuchet MS"
              TextBlock.FontSize="14px"
              TextBlock.FontWeight="Bold"
              ContentSource="Header" />
            <StackPanel
              IsItemsHost="True"
              Orientation="Vertical"
              Grid.Row="1"
              VerticalAlignment="Center"
              HorizontalAlignment="Center" />
          </StackPanel>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="HorizontalHIC" TargetType="{x:Type HeaderedItemsControl}">
    <Setter Property="FocusVisualStyle" Value="{StaticResource HICFocusVisual}"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type HeaderedItemsControl}">
          <StackPanel Margin="20">
            <ContentPresenter
              Grid.Row="0"
              Margin="8,20,0,0"
              TextBlock.Foreground="#AAA"
              TextBlock.FontFamily="Trebuchet MS"
              TextBlock.FontSize="14px"
              TextBlock.FontWeight="Bold"
              ContentSource="Header" />
            <StackPanel
              IsItemsHost="True"
              Orientation="Horizontal"
              Grid.Row="1"
              VerticalAlignment="Center"
              HorizontalAlignment="Center" />
          </StackPanel>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

</ResourceDictionary>